package cn.school.student.param;

import cn.school.common.utils.SysUserUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class StudentInfoPageParam {

    //学号
    @ApiModelProperty(value = "学号")
    private String studentId;

    //名字
    @ApiModelProperty(value = "名字")
    private String name;

    //手机号码
    @ApiModelProperty(value = "手机号码")
    private String phone;
    //曾用名
    @ApiModelProperty(value = "曾用名")
    private String oldName;

    //籍贯
    @ApiModelProperty(value = "籍贯")
    private String nativePlace;

    //性别
    @ApiModelProperty(value = "性别(词典：t_sys_user_sex)")
    private Integer gender;

    //民族
    @ApiModelProperty(value = "民族(词典：nation)")
    private Integer nation;

    //政治面貌
    @ApiModelProperty(value = "政治面貌(词典：political_affiliation)")
    private Integer politicalAffiliation;

    //班级
    @ApiModelProperty(value = "班级")
    private String className;

    //班内编号
    @ApiModelProperty(value = "班内编号")
    private String numberInClass;

    //学生类别
    @ApiModelProperty(value = "学生类别(词典：student_type)")
    private Integer studentType;

    //原毕业学校
    @ApiModelProperty(value = "原毕业学校")
    private String originalGraduationSchool;

    //港澳台侨外
    @ApiModelProperty(value = "港澳台侨外(词典：is_alien)")
    private Integer isAlien;

    //入学日期
    @ApiModelProperty(value = "入学日期")
    private Date entranceDate;

    //户籍省县
    @ApiModelProperty(value = "户籍省县")
    private String provinceCounty;

    //户籍镇/街
    @ApiModelProperty(value = "户籍镇/街")
    private String townStreet;

    //证件号
    @ApiModelProperty(value = "证件号")
    private String certificateId;

    //证件类型
    @ApiModelProperty(value = "证件类型(词典：certificate_type)")
    private Integer certificateType;

    //一卡通卡号
    @ApiModelProperty(value = "一卡通卡号")
    private String tUnionNumber;

    //实际居住地址
    @ApiModelProperty(value = "实际居住地址")
    private String residentialAddress;

    //家庭邮编
    @ApiModelProperty(value = "家庭邮编")
    private String familyPost;

    //家庭电话
    @ApiModelProperty(value = "家庭电话")
    private String familyPhone;

    //特长爱好
    @ApiModelProperty(value = "特长爱好")
    private String specialtyHobby;

    //获奖情况
    @ApiModelProperty(value = "获奖情况")
    private String awardInfo;

    //监护人姓名
    @ApiModelProperty(value = "监护人姓名")
    private String guardianName;

    //监护人与学生关系
    @ApiModelProperty(value = "监护人与学生关系")
    private String relationOfGuardian;

    //监护人联系电话
    @ApiModelProperty(value = "监护人联系电话")
    private String guardianPhoneNumber;

    //页码
    @ApiModelProperty(value = "页码")
    private Integer pageNum;

    //每页大小
    @ApiModelProperty(value = "每页大小")
    private Integer pageSize;

    //获取起始位置
    @ApiModelProperty(hidden = true)
    private Integer start;
    //获取起始位置
    @ApiModelProperty(hidden = true)
    public Integer getStart(){
        if(pageNum != null&&pageSize != null){
            return (pageNum-1)*pageSize;
        }
        return 0;
    }

    private String classId;

    @ApiModelProperty(value = "是否为班主任")
    private String isClassTeacher;

    @ApiModelProperty(value = "班主任ID")
    private String teacherId;

    private String modifyPicBeginTime;
    private String modifyPicEndTime;

    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();

}
